using System.ComponentModel.DataAnnotations;
 using System.Data.Entity.ModelConfiguration;
using SalesPages.DomainModel;
namespace SalesPages.EntityFrameworkRepository.Mapping
{
    public class E1GraphicTagMap : EntityTypeConfiguration<E1GraphicTag>
    {
        public E1GraphicTagMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.groupname)
                .HasMaxLength(50);

            this.Property(t => t.tagname)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("E1GraphicTag");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.tagindex).HasColumnName("tagindex");
            this.Property(t => t.groupname).HasColumnName("groupname");
            this.Property(t => t.tagname).HasColumnName("tagname");
            this.Property(t => t.blurbid).HasColumnName("blurbid");
        }
    }
}
